package Algo_Memetic;
import java.util.ArrayList;

import Solution_Initiale.BinPacking;
import Solution_Initiale.Element;
import Solution_Initiale.OutOfArrayException;

import Solution_Initiale.ListeElements;



public class Population {
	
	private ArrayList<Individu> pop;

	public Population(ArrayList<Individu> pop) {
		super();
		this.pop = pop;
	}

	public ArrayList<Individu> getPop() {
		return pop;
	}

	public void setPop(ArrayList<Individu> pop) {
		this.pop = pop;
	}
	
	public void add(Individu i) {
		this.pop.add(i);
	}
	
	public String toString() {
		String s="";
		for(int i=0; i<this.getPop().size(); i++) {
			int j=i+1;
			s+="==========Individu "+j+"=========="+System.getProperty("line.separator");
			s+=this.getPop().get(i).toString();
		}
		return s;
	}
}